package com.richfit.cuba.modular.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * balance-年度进出口计划明细
 * </p>
 *
 * @author Alan
 * @since 2019-03-27
 */
@TableName("BALANCE_ANNUAL_IMPORTS_DETAIL")
public class BalanceAnnualImportsDetail extends Model<BalanceAnnualImportsDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * Refinery production plan primary key
            主键
     */
    @TableId
    @TableField("ID")
    private String id;
    /**
     * plan year key
     */
    @TableField("PLAN_YEAR_ID")
    private String planYearId;
    /**
     * month 月份
     */
    @TableField("PLAN_MONTH")
    private Date planMonth;
    /**
     * Production quantity
            生产数量
     */
    @TableField("QUANTITY")
    private Double quantity;
    /**
     * creator
            创建者
     */
    @TableField("CREATE_BY")
    private String createBy;
    /**
     * Create time
            创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * updater
            更新者
     */
    @TableField("UPDATE_BY")
    private String updateBy;
    /**
     * Update time
            更新时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;
    /**
     * Remarks information
            备注信息
     */
    @TableField("REMARKS")
    private String remarks;
    /**
     * Delete the tag field
            删除标记：0-正常，1-删除
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    
    @TableField(exist = false)
    private String oilId;
    
    @TableField(exist = false)
    private String countries;

    /**
     * *机构名称
     */
    @TableField(exist = false)
    private String orgName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPlanYearId() {
        return planYearId;
    }

    public void setPlanYearId(String planYearId) {
        this.planYearId = planYearId;
    }

    public Date getPlanMonth() {
        return planMonth;
    }

    public void setPlanMonth(Date planMonth) {
        this.planMonth = planMonth;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getOilId() {
		return oilId;
	}

	public void setOilId(String oilId) {
		this.oilId = oilId;
	}

	public String getCountries() {
		return countries;
	}

	public void setCountries(String countries) {
		this.countries = countries;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	@Override
    protected Serializable pkVal() {
        return id;
    }

    @Override
    public String toString() {
        return "BalanceAnnualImportsDetail{" +
        ", id=" + id +
        ", planYearId=" + planYearId +
        ", planMonth=" + planMonth +
        ", quantity=" + quantity +
        ", createBy=" + createBy +
        ", createDate=" + createDate +
        ", updateBy=" + updateBy +
        ", updateDate=" + updateDate +
        ", remarks=" + remarks +
        ", delFlag=" + delFlag +
        "}";
    }
}
